<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
    <h4 class="modal-title" id="modal-title">设置公司</h4>
  </div>
  <div class="modal-body" id="modal-body">

  <div class="row">
    <div class="col-sm-12">
        <form class="form-horizontal" name="menuBarForm" id="menuBarForm" angular-validator angular-validator-submit="ok()" novalidate >

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.name}">
            <label class="col-sm-3 control-label">公司名称</label>
            <div class="col-sm-8">
              <input type="text" ng-model="formData.name" class="form-control"
                     name="name" placeholder="输入公司名称"
                     required-message="'*请输入公司名称..'"
                     required>
            </div>
          </div>

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.abbr}">
            <label class="col-sm-3 control-label">公司简称</label>
            <div class="col-sm-8">
              <input type="text" ng-model="formData.abbr" class="form-control"
                     name="abbr" placeholder="输入公司简称"
                     required-message="'*请输入公司简称..'"
                     required>
            </div>
          </div>

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.mobile}">
            <label class="col-sm-3 control-label">联系电话</label>
            <div class="col-sm-8">
              <input type="text" ng-model="formData.mobile" class="form-control"
                     name="mobile" placeholder="输入公司电话"
                     required-message="'*请输入公司电话..'"
                     required>
            </div>
          </div>

          <div class="form-group" ng-class="{'has-error' : validateFlag && !formData.type}">
            <label class="col-sm-3 control-label">公司区分</label>
            <div class="col-sm-8">
              <div class="col-sm-4">
                <label class="radio-inline custom-radio nowrap">
                  <input type="radio" name="type" id="inlineRadio211" ng-model="formData.type" ng-value="'0'">
                  <span>平台</span>
                </label>
              </div>
              <div class="col-sm-4">
                <label class="radio-inline custom-radio nowrap">
                  <input type="radio" name="type" id="inlineRadio212" ng-model="formData.type" ng-value="'1'">
                  <span>分销商</span>
                </label>
              </div>
              <div class="col-sm-4">
                <label class="radio-inline custom-radio nowrap">
                  <input type="radio" name="type" id="inlineRadio213" ng-model="formData.type" ng-value="'2'">
                  <span>厂商</span>
                </label>
              </div>
            </div>
          </div>


          <div class="form-group">
            <div class="col-sm-12 text-center">
              <button type="submit" class="btn btn-primary" ng-click="validate()">保&nbsp;&nbsp;&nbsp;&nbsp;存</button>
              <button type="button" class="btn btn-warning" style="margin-left: 20px" ng-click="cancel()">返&nbsp;&nbsp;&nbsp;&nbsp;回</button>
            </div>
          </div>
        </form>
    </div>
  </div>
  </div>
  <div class="modal-footer">
    &nbsp;
  </div>
</div>

